<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;

class CreateSettingsTable extends Migration {

	/**
	 * Run the migrations.
	 *
	 * @return void
	 */
	public function up()
	{
		Schema::create('settings', function(Blueprint $table)
		{
			$table->increments('id');
			$table->string('name')->nullable()->default('');
			$table->string('subtitle')->nullable()->default('');
			$table->string('locale', 6)->nullable()->default('');
			$table->string('timezone', 60)->nullable();
			$table->string('dateformat', 50)->nullable();
			$table->string('template')->nullable()->default('');
			$table->boolean('mailnotify')->nullable()->default(1);
			$table->string('mailfrom')->nullable();
			$table->string('mailfromname')->nullable();
			$table->string('mailmethod', 5)->nullable();
			$table->string('mailhost')->nullable();
			$table->string('mailuser')->nullable();
			$table->string('mailpass')->nullable();
			$table->string('rssuser')->nullable();
			$table->string('rsspass')->nullable();
			$table->timestamps();
			$table->softDeletes();
		});
	}


	/**
	 * Reverse the migrations.
	 *
	 * @return void
	 */
	public function down()
	{
		Schema::drop('settings');
	}

}
